package se.webbzon.boltzmann.camera;

import javax.vecmath.Point3d;
import javax.vecmath.Vector3d;

import se.webbzon.oschi01.worldarea.WorldArea;
import se.webbzon.oschi01.worldobject.WorldObject;

public class DummyCamera extends AbstractCamera {
	
	// The position and target of the dummy camera
	private final Point3d from, to;
	
	// The up direction of the camera
	private final Vector3d up;
	
	/*============================================================
	Constructors
	============================================================*/

	public DummyCamera() {
		super(WorldObject.onStep);
		from = new Point3d(0,0,1);
		to = new Point3d();
		up = new Vector3d(0,1,0);
	}
	
	/*============================================================
	Public Methods
	============================================================*/
	
	@Override public void onStep(WorldArea world) {
		from.set(0, 0, 1 + Math.random());
		setProjectionPerspective(from, to, up);
	}
	

}
